package org.simple.spring;

import org.aspectj.lang.ProceedingJoinPoint;

/**
 * 项目名称：spring-leaning
 * 类名称：LoggerAspect
 * 类描述：LoggerAspect
 * 创建时间：2018/8/6
 *
 * @author jiangjunjie   (E-mail:1620657419@qq.com)
 * @version v1.0
 */
public class LoggerAspect {

    public Object log(ProceedingJoinPoint joinPoint) throws Throwable {
        System.out.println("start log:" + joinPoint.getSignature().getName());
        Object object = joinPoint.proceed();
        System.out.println("end log:" + joinPoint.getSignature().getName());
        return object;
    }

}
